<?php

/**
 * sfGuardFormSignin for sfGuardAuth signin action
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardFormSignin.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class sfGuardFormSignin extends BasesfGuardFormSignin
{
  /**
   * @see sfForm
   */
    public function setup()
  {
     parent::setup();
  }
  
  public function configure()
  {
  unset(
      $this['remember']
   );
   $this->setWidget('ajouterFavorites', new sfWidgetFormInputCheckbox());
   $this->validatorSchema['ajouterFavorites'] = new sfValidatorString(array('required' => false));
   $this->widgetSchema->setLabel('ajouterFavorites', 'ajouter les favoris de cet session');
   $this->widgetSchema->setLabel('username', 'Identifiant');
   $this->widgetSchema->setLabel('password', 'Mot de passe');
   //$this->widgetSchema->setLabel('remember', 'm&eacute;moriser le mot de passe');
   $this->validatorSchema['username'] = new sfValidatorString(array('required' => true),array('required'=>'Vous avez besoin d\'un nom d\'usuaire.'));
   $this->validatorSchema['password'] = new sfValidatorString(array('required' => true),array('required'=>'Tapez votre mot de passe'));
  	
  }
}
